using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LuaInterface;
using Unity.VisualScripting;

public class Main : MonoBehaviour
{
    private LuaState lua = null; // ����һ��LuaState���͵ĳ�Ա����

    void Start()
    {
        // ����һ��lua������ʵ��
        Debug.Log("hello world Start");
        lua = new LuaState(); // ʵ����LuaState����
        lua.Start();
        lua.DoString("num=666");                          // ��lua������ִ�нű���num=666
        lua.DoString("str='chianr666'");                 // ��lua������ִ�нű���str='chianr666'
        lua.DoString("print('lua print hello world')");
        Debug.Log("hello world after");

    }
}